#!/bin/bash
pushd $(dirname $0) >/dev/null
rm tmp.att >/dev/null 2>&1
echo "source $1.foma
write att tmp.att
quit" | foma &&
../general/att2bin tmp.att ../../../data/languages/Polish/$1.fst
rm tmp.att >/dev/null 2>&1
popd >/dev/null
